//
//  ZBSegmentedTabButton.m
//  XZBProduct
//
//  Created by xzb on 2019/1/3.
//  Copyright © 2019 xzb. All rights reserved.
//

#import "ZBSegmentedTabButton.h"

@implementation ZBSegmentedTabButton

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.titleImageView];
        [self.titleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.bottom.offset(0);
        }];
    }
    return self;
}

- (void)setNormalImage:(UIImage *)normalImage
{
    _normalImage = normalImage;
    self.titleImageView.image = normalImage;
}

ZBLazyProperty(UIImageView, titleImageView);

@end
